package com.ll.beautymall.utils;

import com.ll.beautymall.api.UrlConfig;

import java.util.HashMap;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2016/10/20.
 * 请求头部导航条的Api接口,会自动与base_url拼接
 */
public interface IHomeApi {
    @GET(UrlConfig.Url.HOME_NAV_URL)
    Call<String> getNav();

    @GET(UrlConfig.Url.NINE_HEADER_URL)
    Call<String> getNineNavData();

    //所有Banner与Model，Allbuy都可根据Nav获取的数据来拼接
    @GET(UrlConfig.Url.HOME_BANNER_URL)
    Call<String> getBanner(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.HOME_MODEL_URL)
    Call<String> getModel(@QueryMap HashMap<String, String> map);

    //根据Nav解析的数据来拼接
    @GET(UrlConfig.Url.HOME_ALLBUY_URL)
    Call<String> getAllBuyData(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.HOME_CATEGORY_URL)
    Call<String> getCategoryList(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.HOME_CATEGORY_BRAND_URL)
    Call<String> getBrandData(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.HOME_ZERO_URL)
    Call<String> getZeroData(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.HOME_ZERO_HEADER_URL)
    Call<String> getZeroHeaderData(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.QUALITY_URL)
    Call<String> getQualityData(@QueryMap HashMap<String, String> map);

    @GET(UrlConfig.Url.NINE_ALLBUY_URL)
    Call<String> getNineAllBuyData(@QueryMap HashMap<String, String> map);
}
